package crazy.io;

import java.io.FileInputStream;
import java.io.FileReader;
import java.io.OutputStream;
import java.io.PrintStream;
import java.io.Writer;

public class FileInputStreamTest
{
	public static void main(String[] args) throws Exception
	{
		FileInputStream fis = new FileInputStream("D:\\workspace\\Algorithm\\src\\crazy\\io\\FileInputStreamTest.java");
		byte[] bbuf = new byte[128];
		int hasRead = 0;
		while ((hasRead= fis.read(bbuf)) > 0)
		{
			System.out.println(new String(bbuf, 0, hasRead));
		
			Thread.sleep(2000);
		}
		fis.close();
	}
}
